package net.monare.mifss.evn;

import net.monare.mifss.admin.ui.win.ConfigureStorageWindow;
import net.monare.mifss.configurations.pojo.StorageDef;

import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;

public class ConfigureSelectedStorageListener implements ClickListener{

	private static final long serialVersionUID = 1069404455197373973L;

	private final ConfigureStorageWindow parent;
	private final StorageDef storageDef;
	
	public ConfigureSelectedStorageListener(ConfigureStorageWindow parent, StorageDef storageDef){
		this.parent = parent;
		this.storageDef = storageDef;
	}
	
	public void buttonClick(ClickEvent event) {
		parent.resetMiddlePane(storageDef);
	}

}
